package org.itboys.lock;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * zookeeper 实现分布式锁
 * 利用zookeeper 临时节点 EPHEMERAL_SEQUENTIAL类型节点 和 watcher机制 实现
 * @author ChenJh
 */
public class ZookeeperLock implements DistributedLock {

    private static Logger logger = LoggerFactory.getLogger(ZookeeperLock.class);

    private String zkHost;

    @Override
    public boolean acquire(String key) {
        return false;
    }

    @Override
    public boolean acquire(String key, int time) {
        return false;
    }

    @Override
    public void release(String key) {

    }

    public void setZkHost(String zkHost) {
        this.zkHost = zkHost;
    }
}
